import Suit from "./Suit";
import Value from "./Value";

export default class Card {

    readonly #value: Value;

    readonly #suit: Suit;

    readonly #image: string;

    constructor(value: Value, suit: Suit, image: string) {
        this.#value = value;
        this.#suit = suit;
        this.#image = image;
    }

    get value(): Value {
        return this.#value;
    }

    get suit(): Suit {
        return this.#suit;
    }

    get image(): string {
        return this.#image;
    }

    get code() {
        return this.value.code + this.suit.code;
    }
}
